package org.imaginedays.java.design.patter.strategy;

public class CashStrategyTest {
	
	public static void main(String[] args) {
		
		CashSuper cashSuper = new CashRebate("0.8");
		CashContext context = new CashContext(cashSuper);
		System.out.println(context.getResult(200));
		
		CashContextNew contextNew = new CashContextNew(CashType.cashReturn);
		System.out.println(contextNew.getResult(200));
		
	}

}
